package com.sdhs.myproject.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sdhs.myproject.mapper.GcMyprojectProfitMarginMeasurementMapper;
import com.sdhs.myproject.domain.GcMyprojectProfitMarginMeasurement;
import com.sdhs.myproject.service.IGcMyprojectProfitMarginMeasurementService;

/**
 * 我的项目--利润率测算Service业务层处理
 *
 * @author andong
 * @date 2025-03-11
 */
@Service
public class GcMyprojectProfitMarginMeasurementServiceImpl implements IGcMyprojectProfitMarginMeasurementService
{
    @Autowired
    private GcMyprojectProfitMarginMeasurementMapper gcMyprojectProfitMarginMeasurementMapper;

    /**
     * 查询我的项目--利润率测算
     *
     * @param id 我的项目--利润率测算主键
     * @return 我的项目--利润率测算
     */
    @Override
    public GcMyprojectProfitMarginMeasurement selectGcMyprojectProfitMarginMeasurementById(Long id)
    {
        return gcMyprojectProfitMarginMeasurementMapper.selectGcMyprojectProfitMarginMeasurementById(id);
    }

    /**
     * 查询我的项目--利润率测算列表
     *
     * @param gcMyprojectProfitMarginMeasurement 我的项目--利润率测算
     * @return 我的项目--利润率测算
     */
    @Override
    public List<GcMyprojectProfitMarginMeasurement> selectGcMyprojectProfitMarginMeasurementList(GcMyprojectProfitMarginMeasurement gcMyprojectProfitMarginMeasurement)
    {
        return gcMyprojectProfitMarginMeasurementMapper.selectGcMyprojectProfitMarginMeasurementList(gcMyprojectProfitMarginMeasurement);
    }

    /**
     * 新增我的项目--利润率测算
     *
     * @param gcMyprojectProfitMarginMeasurement 我的项目--利润率测算
     * @return 结果
     */
    @Override
    public int insertGcMyprojectProfitMarginMeasurement(GcMyprojectProfitMarginMeasurement gcMyprojectProfitMarginMeasurement)
    {
        return gcMyprojectProfitMarginMeasurementMapper.insertGcMyprojectProfitMarginMeasurement(gcMyprojectProfitMarginMeasurement);
    }

    /**
     * 修改我的项目--利润率测算
     *
     * @param gcMyprojectProfitMarginMeasurement 我的项目--利润率测算
     * @return 结果
     */
    @Override
    public int updateGcMyprojectProfitMarginMeasurement(GcMyprojectProfitMarginMeasurement gcMyprojectProfitMarginMeasurement)
    {
        return gcMyprojectProfitMarginMeasurementMapper.updateGcMyprojectProfitMarginMeasurement(gcMyprojectProfitMarginMeasurement);
    }
    /**
     * 修改我的项目--利润率测算
     *
     * @param gcMyprojectProfitMarginMeasurement 我的项目--利润率测算
     * @return 结果
     */
    @Override
    public int updateMeasurement(GcMyprojectProfitMarginMeasurement gcMyprojectProfitMarginMeasurement)
    {
        return gcMyprojectProfitMarginMeasurementMapper.updateMeasurement(gcMyprojectProfitMarginMeasurement);
    }

    /**
     * 批量删除我的项目--利润率测算
     *
     * @param ids 需要删除的我的项目--利润率测算主键
     * @return 结果
     */
    @Override
    public int deleteGcMyprojectProfitMarginMeasurementByIds(Long[] ids)
    {
        return gcMyprojectProfitMarginMeasurementMapper.deleteGcMyprojectProfitMarginMeasurementByIds(ids);
    }

    /**
     * 删除我的项目--利润率测算信息
     *
     * @param id 我的项目--利润率测算主键
     * @return 结果
     */
    @Override
    public int deleteGcMyprojectProfitMarginMeasurementById(Long id)
    {
        return gcMyprojectProfitMarginMeasurementMapper.deleteGcMyprojectProfitMarginMeasurementById(id);
    }
}
